<template>
    <accordion >
        <div v-for="(l,index) in itinerary">
            <accordion-item :title="'Day'+(index+1)+':'+l.title" content-height="2500">
                <div class="accordion-content">
                    <h6><i class="ion-grid"></i>酒店</h6>
                    <div class="ac-hotel">{{l.hotel}}</div>
                    <h6><i class="ion-images"></i>景点</h6>
                    <div class="ac-images" v-for="n in l.visited_attraction">
                        <img :src="n.image | imageFilter">
                    </div>
                    <h6><i class="ion-ios-list-outline"></i>概述</h6>
                    <div v-html="l.content"></div>
                </div>
            </accordion-item>
        </div>
    </accordion>
</template>
<script>
    export default {
        props:['itinerary'],
        data() {
            return {

            }
        },
        methods: {
            changeColor(event){
                console.log('s')
                console.log(event.target)
            }
        },
        created(){

        }
    }
</script>

<style>
    .von-accordion{
        margin-top:44px;
    }
    .von-accordion .list-accordion .item-icon-right {
        padding:7px 24px;
        line-height: 50px;
        font-size:20px;
        font-weight: 600;
    }
    .list{
        padding-top:0;
        padding-bottom:0;
    }
    .item{
        padding:0;
    }
    .accordion-content{
        width:100%;
        color: #363636;
        padding-right:12px;
    }
    .accordion-content h6{
        margin: 32px 0 24px 0;
        font-size: 16px;
        position: relative;
    }
    .accordion-content h6 i{
        margin-right:20px;
        font-size:25px;
        position: relative;
        top:3px;
    }
    .ac-hotel{
        color: #3f3f3f;
        line-height: 22px;
        margin-bottom: 28px;
        overflow: hidden;
    }
    .ac-images{
        flex-wrap: wrap;
        justify-content: space-between;
        overflow: hidden;
        color: #3f3f3f;
        line-height: 22px;
    }
    .ac-images img{
        display: inline-block;
        width: 100%;
        margin-bottom: 24px;
    }
</style>